From: bors Date: Mon, 16 Apr 2018 21:10:56 +0000 (+0000) Subject: Auto merge of #5272 - Phlosioneer:5211-missing-size-hints, r=matklad X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=de23b54b01324a9e17e04e1bbe6d69468904f348;p=cargo.git Auto merge of #5272 - Phlosioneer:5211-missing-size-hints, r=matklad Implement size_hint for some iterators This PR implements size_hints for `Deps`, `DepsNotReplaced`, and `Members`. These size_hints are used extensively by cargo to allocate Vecs. `Deps`, `DepsNotReplaced`, and `RcVecIter` also now implement `ExactSizeIterator`. Closes #5211 --- de23b54b01324a9e17e04e1bbe6d69468904f348